home *** CD-ROM | disk | FTP | other *** search
- // ===============================================================
- // Vertex Program:
- // Description: 2D shadow map pass
- // Last Update: 14/08/2003
- // Coder: Andrey Honich
- // ===============================================================
-
- #include "../CGVPMacro.csi"
-
- VertAttributes { POSITION_3 TEXCOORD0_2 }
-
- NoFog
- MainInput { VIEWPROJ_MATRIX, uniform float4x4 TexGen0 }
- DeclarationsScript
- {
- IN_T0
- OUT_T0_T1
- }
- PositionScript = PosCommon
- CoreScript
- {
- OUT.Tex0 = mul(TexGen0, vPos);
- OUT.Tex1.xy = IN.TexCoord0.xy;
- }
-